package com.handwriting.backend.message;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class PyResponse {
    public static final int OK = 20000;
    public static final int ERROR = 40000;
    private int stateCode;
    private String msg;
    public boolean ok() {
        return stateCode == OK;
    }

    public boolean error() {
        return stateCode == ERROR;
    }
}
